<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"     
      xmlns:f="http://java.sun.com/jsf/core">
    <h:body>
        <h:form>
            <table border="0">
                <tbody>
                    <h:form>  
                        <h:panelGrid columns="2" cellpadding="5">  
                            <h:outputLabel for="#{loginBean.username}" value="Usuario: " />  
                            <h:inputText value="#{loginBean.username}" id="username" required="true" label="username" />  

                            <h:outputLabel for="#{loginBean.password}" value="Contrase&ntilde;a: " />  
                            <h:inputSecret value="#{loginBean.password}" id="password" required="true" label="password" />  

                            <f:facet name="footer">  
                                <h:commandButton type="submit" value="Ingresar" action="#{loginBean.login}"/>  
                            </f:facet>  
                        </h:panelGrid>  
                    </h:form> 
                </tbody>
            </table>
        </h:form>
    </h:body>
</html>

